﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SocketHttpLib
{
    internal delegate string[] HeaderParser(string value);
    internal class HeaderInfo
    {
        internal readonly bool IsRequestRestricted;

        internal readonly bool IsResponseRestricted;

        internal readonly HeaderParser Parser;

        internal readonly string HeaderName;

        internal readonly bool AllowMultiValues;

        internal HeaderInfo(string name, bool requestRestricted, bool responseRestricted, bool multi, HeaderParser p)
        {
            this.HeaderName = name;
            this.IsRequestRestricted = requestRestricted;
            this.IsResponseRestricted = responseRestricted;
            this.Parser = p;
            this.AllowMultiValues = multi;
        }
    }
}
